package show.me.the.money.service.core.event.test;

import java.util.HashMap;

import show.me.the.money.service.core.EventSupportService;
import show.me.the.money.util.context.Context;


public class DoSomeThing extends EventSupportService {
	
	public DoSomeThing(){
		this.on("after2", new After2Listener());
	}

	@Override
	public void execute(HashMap<String, Object> req,
			HashMap<String, Object> res, Context ctx) {
		
		HashMap<String, Object> message = new HashMap<String, Object>();
		message.put("req", req);
		message.put("res", res);
		message.put("ctx", ctx);
		
		System.out.println("step 1...");
		System.out.println("step 2...");		
		
		this.fireEvent("after2", message);
		
		System.out.println("step 3...");
		System.out.println("step 4...");

	}

}
